from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver import ActionChains
import time
d = webdriver.Chrome()
d.maximize_window()
d.get('https://www.qq.com')
time.sleep(3)
d.get_screenshot_as_file('a.jpg')

time.sleep(4)
d.quit()